<extend name="Public/base" />

<block name="body">
    <form method="POST" id="form1" action="">
        <!-- 标题栏 -->
        <div class="main-title">
            <h2>
                用户派送提成信息
            </h2>
        </div>
        <!-- 数据列表 -->
        <div class="data-table table-striped">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th width="10%">日期</th>
                        <th width="8%">用户</th>
                        <th width="8%">工号</th>
                        <th width="10%">订单编号</th>
                        <th width="8%">客户姓名</th>
                        <th width="15%">客户地址</th>
                        <th width="5%">营销提成</th>
                    </tr>
                </thead>
                <tbody>
                <notempty name="_list">
                    <volist name="_list" id="vo">
                        <tr  valign="top">
                            <td>{$vo.report_day} </td>
                            <td>{$vo.username}</td>
                            <td>{$vo.jobnumber} </td>
                            <td>{$vo.orderid} </td>
                            <td>{$vo.toName} </td>
                            <td>{$vo.toStreet} </td>
                            <td><span style="color:red;">1</span></td>
                        </tr>
                    </volist>
                    <else/>
                    <td colspan="12" class="text-center"> aOh! 暂时还没有内容! </td>
                </notempty>
            </table>
        </div>
        <div class="page">
            {$_page}
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript" src="__JS__/Chart.min.js"></script>
    <script type="text/javascript">
        //搜索功能
        $("#search").click(function () {
            var url = $(this).attr('url');

            var query = $('.search-form').find('input').serialize();
            var queryselect = $('.search-form').find('select').serialize();

            query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
            query = query.replace(/^&/g, '');
            queryselect = queryselect.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
            queryselect = queryselect.replace(/^&/g, '');

            if (url.indexOf('?') > 0) {
                url += '&' + query;
                url += '&' + queryselect;
            } else {
                url += '?' + query;
                url += '?' + queryselect;
            }

            window.location.href = url;
        });
        //回车搜索
        $(".search-input").keyup(function (e) {
            if (e.keyCode === 13) {
                $("#search").click();
                return false;
            }
        });
        //导航高亮
        highlight_subnav('{:U('LogisticsUser/psindex')}');
        
    </script>
</block>
